/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.legendshop.oa.model.AdminMessageDto;
import com.legendshop.oa.model.AdminMessageDtoList;
import com.legendshop.oa.model.AdminMessageEnum;
import com.legendshop.oa.service.MessageService;

/**
 * The Class MessageServiceImpl.
 */
@Service("messageService")
public class MessageServiceImpl implements MessageService {
	
	
	@Override
	public AdminMessageDtoList getMessage() {
		

		List<AdminMessageDto> adminMessageList = new ArrayList<AdminMessageDto>();
		AdminMessageDto adminMessageDto = new AdminMessageDto();
		adminMessageDto.setName(AdminMessageEnum.AUDITUING_SHOP.value());
		adminMessageDto.setUrl(AdminMessageEnum.AUDITUING_SHOP.url());
		adminMessageDto.setNum(2);
		adminMessageList.add(adminMessageDto);
		
		AdminMessageDtoList adminMessageDtoList = new AdminMessageDtoList();
		adminMessageDtoList.setList(adminMessageList);
		adminMessageDtoList.setTotalMessage(1);
		return adminMessageDtoList;
	}


	
}
